<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
   <head>
    	<title>获奖上传</title>   
		<s:include value="../common/source.jsp"></s:include>
		<script src="js/Limit.js"></script>		
  </head>
  <body>
   <script charset='gb2312'>
/* document.write(extArray.join("  ")); */
</script>
<div class="body">
  <!-- 获奖上传开始 -->
	<form class="sui-form form-horizontal sui-validate" action="teacher/modifyAwa2.action"  onsubmit="return LimitAttach(form, file) " method="post" enctype="multipart/form-data">
	   <table class="sui-table table-vzebra table0" >
                    <tbody>
                      <tr>
                        <td>获奖名称</td>
                        <td> <input type="text" class="input-large"  data-rules="required" name="awar.name" value="<s:property value="awa.name"/>"></td>
                      </tr>
                      <tr>
                        <td>获奖项目名称</td>
                        <td><input type="text" class="input-large" data-rules="required" name="awar.projectName" value="<s:property value="awa.projectName"/>"></td>
                      </tr>
                      
                      <tr>
                        <td>证书编号</td>
                        <td> <input type="text" class="input-large" data-rules="required" name="awar.number" value="<s:property value="awa.number"/>"> </td>
                      </tr>
                      
                       <tr>
                        <td>获奖等级</td>
                        <td><div class="controls ">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input value="<s:property value="awa.level"/>" class="input-large" name="awar.level" type="hidden"><i class="caret"></i><span>
                  <s:if test="awa.level==0">一等奖</s:if>
                  <s:elseif test="awa.level==1">二等奖</s:elseif>
                  <s:elseif test="awa.level==2">三等奖</s:elseif>
                  </span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=0>一等奖</a></li>
				  <li role="presentation" class="divider"></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=1>二等奖</a></li>
                  <li role="presentation" class="divider"></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=2>三等奖</a></li>
                </ul>
              </span>
            </span>
          </div></td>
                      </tr>                   
                       <tr>
                        <td>获奖级别</td>
                        <td><div class="controls ">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input value="<s:property value="awa.kind"/>" class="input-large" name="awar.kind" type="hidden"><i class="caret"></i><span>
                  <s:if test="awa.kind==0">国家级</s:if>
                  <s:elseif test="awa.kind==1">省部级</s:elseif>
                  <s:elseif test="awa.kind==2">厅局级</s:elseif>
                  <s:elseif test="awa.kind==3">校级</s:elseif>
                  </span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=0>国家级</a></li>
				  <li role="presentation" class="divider"></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=1>省部级</a></li>
                  <li role="presentation" class="divider"></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=2>厅局级</a></li>
                  <li role="presentation" class="divider"></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=3>校级</a></li>
                </ul>
              </span>
            </span>
          </div></td>
                      </tr>
                      
                       <tr>
                        <td>获奖单位排名</td>
                        <td><div class="controls ">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input value="<s:property value="awa.unitNum"/>" class="input-large" name="awar.unitNum" type="hidden"><i class="caret"></i><span>
                  <s:if test="awa.unitNum==0">第一名</s:if>
                  <s:elseif test="awa.unitNum==1">第二名</s:elseif>
                  <s:elseif test="awa.unitNum==2">第三名</s:elseif>
                  </span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=0>第一</a></li>
				  <li role="presentation" class="divider"></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=1>第二</a></li>
                  <li role="presentation" class="divider"></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=2>第三</a></li>
                </ul>
              </span>
            </span>
          </div></td>
                      </tr>
                      
                       <tr>
                        <td>完成人员</td>
                        <td>  <input type="text" class="input-large" data-rules="required" name="awar.people" value="<s:property value="awa.people"/>"></td>
                      </tr>
                       <tr>
                        <td>获奖时间</td>
                        <td> <input type="text" class="input-large" data-toggle="datepicker" name="dates" value="<s:date name="awa.date"  format="yyyy-MM-dd" />"></td>
                      </tr>
                      
                       <tr>
                        <td>颁奖单位</td>
                        <td>  <input type="text" class="input-large" data-rules="required" name="awar.empowerUnit" value="<s:property value="awa.empowerUnit"/>"></td>
                      </tr>
                       <input type="text" name="awaid" value="<s:property value="awa.awaId"/>" style="display:none;">
                      <input type="text" name="teaid" value="<s:property value="awa.teaId"/>" style="display:none;">
                       <input type="text" name="upname" value="<s:property value="awa.upload"/>" style="display:none;">
                       <tr>
                        <td>上传文件</td>
                        <td> <input type="file" name="fileCom"> </td>
                      </tr>
                    </tbody>
                  </table>
                   <div class="control-group button3">
          <label class="control-label v-top"></label>
          <div class="controls ">
            <button type="submit" class="sui-btn btn-primary" onclick="return LimitAttach(this.form, this.form.fileCom.value)">提交</button>
            <button type="reset" class="sui-btn">重置</button>
          </div>
        </div>
	</form>
	<!-- 获奖上传结束 -->
   <script>
   if("<s:property value="suc"/>"=="success"){
     alert("上传获奖成果！！！");
   }
   </script>
   </div>      
  </body>
</html>
